package Lesson18;

public class AbstractionDemos {

	public static void main(String[] args) 
	{
		Shop myShop = new Shop();
		myShop.movingObjects = new Movable[2];
		//myShop.movingObjects[0] = new Car();
		//myShop.movingObjects[1] = new Jeep();
		
		//Movable car = new Car();
		Car carConcrete = new Car();
		
		//car.move("right");
		carConcrete.switchLights(true);
		
		//Movable jeep = new Jeep();
		
		Human human = new Human();
		human.breath();
		human.makeNoise();
		
		Mammal mammal = new Human();
		mammal.breath();
		mammal.makeNoise();
		
		Mammal monkey = new Monkey();
		monkey.breath();
		monkey.makeNoise();
		
		Zoo myZoo = new Zoo();
		myZoo.mammals[0] = new Monkey();
		myZoo.mammals[1] = new Human();
		myZoo.makeAllAnimalNoisy();
	}

}
